 /**
 * 逻辑、功能相关描述:
 *
 * @author yandawei 编写日期：2008-10-9
 */
package com.ce.pms.common.dao;

import java.util.List;
import java.util.Set;

import com.ce.pms.base.dao.IPmsBaseDao;
import com.ce.pms.common.model.SecUserRelationRight;

/**
 * @author yandawei
 *
 */
public interface IDataRightDao extends IPmsBaseDao<SecUserRelationRight> {

	/**
	 * 获取用户权限集合
	 * @param userId
	 * @return
	 * @author <a href="mailto:i0o@live.cn">黄腾飞</a>
	 * @created 2008-11-28
	 */
	public Set<SecUserRelationRight> getUserDataRight(Long userId);

	public List<SecUserRelationRight> getBuildingRight(Long userId);

	public List<SecUserRelationRight> getPrecinctRight(Long userId);
	
	/**
	 * 查询用户是否有相关房屋的权限
	 * @param userId 用户id
	 * @param hoursId 房屋id
	 * @return
	 * @author <a href="mailto:i0o@live.cn">黄腾飞</a>
	 * @created 2008-11-28
	 */
	List<?> getDataRightByUserId(Long userId,Long hoursId);
	
	void executeHql(String hql);
}
